/**
 * 转换函数集合
 */
import CryptoJS from 'crypto-js'

export const strReturnFn = () => {
    return Date.now()
}

export const signReturnFn = (data) => {
    return CryptoJS.MD5(
        'apiKey:' +
            data.apiKey +
            'phone:' +
            data.phone +
            'timestamp:' +
            data.timestamp +
            import.meta.env.HY_THE_VALUE.slice(
                0,
                import.meta.env.HY_THE_VALUE.length - 2,
            ),
    ).toString()
}
